<?php

	require_once('../includes/config.php');
	require_once('../includes/functions.php');
	
	// Retrieve base HTML
	$pageStr = buildStandardPage('Transaction','Transaction');
	
	$content = '';
	
	if(isMobile()){
		$content .= 'Detected Mobile!';
	}
	else{	
		if(isLoggedIn()) {
			header('Location: ' . $ACCOUNTS_URL);
		}
		else{
			header('Location: ' . $SITE_URL);
		}
	}

	$pageStr = str_Replace('<!--content-->', $content, $pageStr);

	/**
	 * Send the generated HTML to the client's browser
	 */
	echo $pageStr;
?>